local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)				npcHandler:onCreatureAppear(cid) 			end
function onCreatureDisappear(cid) 			npcHandler:onCreatureDisappear(cid) 			end
function onCreatureSay(cid, type, msg) 			npcHandler:onCreatureSay(cid, type, msg) 		end
function onThink() 					npcHandler:onThink() 					end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
npcHandler:setMaxIdleTime(180)

--===== BUYABLE IN THE SHOP =====--
--shopModule:addBuyableItem({''}, 			item_id, price,	'')

shopModule:addBuyableItem({'shovel'},			2554,50,		'shovel')
shopModule:addBuyableItem({'rope'},			2120,25,		'rope')
shopModule:addBuyableItem({'pick'},			2553,50,		'pick')
shopModule:addBuyableItem({'machete'},			2420,25,		'machete')
shopModule:addBuyableItem({'backpack'},			1988,10,		'backpack')
shopModule:addBuyableItem({'backpack'},			1999,10,		'backpack')
shopModule:addBuyableItem({'backpack'},			2000,10,		'backpack')
shopModule:addBuyableItem({'backpack'},			2001,10,		'backpack')
shopModule:addBuyableItem({'brocade backpack'},		9774,10,		'brocade backpack')
shopModule:addBuyableItem({'brocade bag'},		9775,10,		'brocade bag')
shopModule:addBuyableItem({'fishing rod'},		2580,100,		'fishing rod')
shopModule:addBuyableItem({'worm'},			3976,1,			'worm')
shopModule:addBuyableItem({'torch'},			2050,2,			'torch')
shopModule:addBuyableItem({'rope'},			2120,50,		'rope')
shopModule:addBuyableItem({'amulet of loss'},		2173,10000,		'amulet of loss')

shopModule:addBuyableItem({'clerical mace'},		2423,2000, 		'clerical mace')
shopModule:addBuyableItem({'fire sword'},		2392,30000, 		'fire sword')
shopModule:addBuyableItem({'knight axe'},		2430,20000,	 	'knight axe')
shopModule:addBuyableItem({'beholder shield'},		2518,10000, 		'beholder shield')
shopModule:addBuyableItem({'steel helmet'},		2457,2500,		'steel helemt')
shopModule:addBuyableItem({'plate armor'},		2463,4000, 		'plate armor')
shopModule:addBuyableItem({'plate legs'},		2647,5000, 		'plate legs')
shopModule:addBuyableItem({'leather boots'},		2643,150,		'leather boots')


--[[TODO:

]]--

--===== SELLABLE TO THE SHOPKEEPER =====--
shopModule:addSellableItem({'empty potion flask'},	7634, 5,	'empty potion flask')
shopModule:addSellableItem({'empty potion flask'},	7635, 5,	'empty potion flask')
shopModule:addSellableItem({'empty potion flask'},	7636, 5,	'empty potion flask')

shopModule:addSellableItem({'royal helmet'},		2498,40000,	'royal helmet')
shopModule:addSellableItem({'warrior helmet'},		2475,6000, 	'warrior helmet')
shopModule:addSellableItem({'crusader helmet'},		2497,9000, 	'crusader helmet')
shopModule:addSellableItem({'crown helmet'},		2491,5000, 	'crown helmet')
shopModule:addSellableItem({'devil helmet'},		2462,4000, 	'devil helmet')
shopModule:addSellableItem({'mystic turban'},		2663,500, 	'mystic turban')
shopModule:addSellableItem({'chain helmet'},		2458,35, 	'chain helmet')
shopModule:addSellableItem({'iron helmet'},		2459,30, 	'iron helmet')
shopModule:addSellableItem({'steel helmet'},		2457,75,	'steel helemt')

shopModule:addSellableItem({'steel boots'},		2645,40000, 	'steel boots')
shopModule:addSellableItem({'boots of haste'},		2195,40000, 	'boots of haste')
shopModule:addSellableItem({'golden boots'},		2646,200000,	'golden boots')

shopModule:addSellableItem({'magic plate armor'},	2472,200000, 	'magic plate armor')
shopModule:addSellableItem({'dragon scale mail'},	2492,60000, 	'dragon scale mail')
shopModule:addSellableItem({'demon armor'},		2494,90000, 	'demon armor')
shopModule:addSellableItem({'golden armor'},		2466,30000, 	'golden armor')
shopModule:addSellableItem({'crown armor'},		2487,20000, 	'crown armor')
shopModule:addSellableItem({'knight armor'},		2476,5000, 	'knight armor')
shopModule:addSellableItem({'blue robe'},		2656,15000, 	'blue robe')
shopModule:addSellableItem({'lady armor'},		2500,2500, 	'lady armor')
shopModule:addSellableItem({'plate armor'},		2463,400, 	'plate armor')
shopModule:addSellableItem({'brass armor'},		2465,200, 	'brass armor')
shopModule:addSellableItem({'chain armor'},		2464,100, 	'chain armor')
shopModule:addSellableItem({'paladin armor'},		8891,30000, 	'paladin armor')
shopModule:addSellableItem({'skullcracker armor'},	8889,60000, 	'skullcracker armor')

shopModule:addSellableItem({'golden legs'},		2470,80000, 	'golden legs')
shopModule:addSellableItem({'crown legs'},		2488,15000, 	'crown legs')
shopModule:addSellableItem({'knight legs'},		2477,6000, 	'knight legs')
shopModule:addSellableItem({'plate legs'},		2647,500, 	'plate legs')
shopModule:addSellableItem({'brass legs'},		2478,100, 	'brass legs')

shopModule:addSellableItem({'mastermind shield'},	2514,150000, 	'mastermind shield')
shopModule:addSellableItem({'demon shield'},		2520,40000, 	'demon shield')
shopModule:addSellableItem({'blessed shield'},		2523,150000, 	'blessed shield')
shopModule:addSellableItem({'great shield'},		2522,100000, 	'great shield')
shopModule:addSellableItem({'vampire shield'},		2534,25000, 	'vampire shield')
shopModule:addSellableItem({'medusa shield'},		2536,8000, 	'medusa shield')
shopModule:addSellableItem({'amazon shield'},		2537,4000, 	'amazon shield')
shopModule:addSellableItem({'crown shield'},		2519,5000, 	'crown shield')
shopModule:addSellableItem({'tower shield'},		2528,4000, 	'tower shield')
shopModule:addSellableItem({'guardian shield'},		2515,200, 	'guardian shield')
shopModule:addSellableItem({'beholder shield'},		2518,1500, 	'beholder shield')
shopModule:addSellableItem({'dwarven shield'},		2525,100, 	'dwarven shield')
shopModule:addSellableItem({'dragon shield'},		2516,2500, 	'dragon shield')

shopModule:addSellableItem({'wand of inferno'},		2187,2500, 	'wand of inferno')
shopModule:addSellableItem({'wand of decay'},		2188,2500, 	'wand of decay')

shopModule:addSellableItem({'magic longsword'},		2390,150000, 	'magic longsword')
shopModule:addSellableItem({'warlord sword'},		2408,100000, 	'warlord sword')
shopModule:addSellableItem({'magic sword'},		2400,120000, 	'magic sword')
shopModule:addSellableItem({'giant sword'},		2393,10000, 	'giant sword')
shopModule:addSellableItem({'bright sword'},		2407,6000, 	'bright sword')
shopModule:addSellableItem({'ice rapier'},		2396,4000, 	'ice rapier')
shopModule:addSellableItem({'fire sword'},		2392,3000, 	'fire sword')
shopModule:addSellableItem({'serpent sword'},		2409,1500, 	'serpent sword')
shopModule:addSellableItem({'spike sword'},		2383,800, 	'spike sword')
shopModule:addSellableItem({'two handed sword'},	2377,400, 	'two handed sword')
shopModule:addSellableItem({'broad sword'},		2413,70, 	'broad sword')
shopModule:addSellableItem({'short sword'},		2406,30, 	'short sword')
shopModule:addSellableItem({'sword'},			2376,25, 	'sword')

shopModule:addSellableItem({'dragon lance'},		2414,10000, 	'dragon lance')
shopModule:addSellableItem({'stonecutter axe'},		2431,90000, 	'stonecutter axe')
shopModule:addSellableItem({'guardian halberd'},	2427,7500, 	'guardian halberd')
shopModule:addSellableItem({'fire axe'},		2432,10000, 	'fire axe')
shopModule:addSellableItem({'knight axe'},		2430,2000, 	'knight axe')
shopModule:addSellableItem({'double axe'},		2387,200, 	'double axe')
shopModule:addSellableItem({'halberd'},			2381,200, 	'halberd')
shopModule:addSellableItem({'battle axe'},		2378,100, 	'battle axe')
shopModule:addSellableItem({'hatchet'},			2388,20, 	'hatchet')

shopModule:addSellableItem({'war hammer'},		2391,6000, 	'war hammer')
shopModule:addSellableItem({'thunder hammer'},		2421,90000, 	'thunder hammer')
shopModule:addSellableItem({'skull staff'},		2436,1000, 	'skull staff')
shopModule:addSellableItem({'dragon hammer'},		2434,2000, 	'dragon hammer')
shopModule:addSellableItem({'clerical mace'},		2423,200, 	'clerical mace')
shopModule:addSellableItem({'battle hammer'},		2417,60, 	'battle hammer')
shopModule:addSellableItem({'mace'},			2398,30, 	'mace')
--[[TODO:


]]--




npcHandler:addModule(FocusModule:new())
